package com.example.gbasedemo.control;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.gbasedemo.service.Servicew;
import com.example.gbasedemo.web.PlanTaskReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyControl {

    @Autowired
    private Servicew orderService;

    @GetMapping("/order/{id}")
    public String getOrder(@PathVariable Long id) {
        return orderService.getPageResultConfirm(new Page<>(1, 11), new PlanTaskReq());
    }
}
